class Movie {
  id: string;

  title: string;

  releaseYear: string;

  constructor(id: string, title: string, releaseYear: string) {
    this.id = id;
    this.title = title;
    this.releaseYear = releaseYear;
  }

  getDetails(): string {
    return `${this.title} (${this.releaseYear})`;
  }
}

export default Movie;
